package com.holly.unit.es.api.pojo;

import com.holly.unit.es.api.enums.EsTypeEnum;
import lombok.Data;

/**
 * 类描述: ElasticSearch 字段属性
 *
 * @author fxr
 * @version 1.0.0
 * @date 2022/4/6 10:22
 */
@Data
public class EsProperties {

    private EsTypeEnum type;

    public void setType(String type) {
        this.type = EsTypeEnum.getByValue(type);
    }

    public void setType(EsTypeEnum type) {
        this.type = type;
    }

}
